<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
    <title>城市管理</title>
    <script type='text/javascript' src='http://localhost/baidusale/hdphp/Extend/Org/Jquery/jquery-1.8.2.min.js'></script>
<link href='http://localhost/baidusale/hdphp/hdjs/css/hdjs.css' rel='stylesheet' media='screen'>
<link href='http://localhost/baidusale/hdphp/hdjs/css/hdvalidate.css' rel='stylesheet' media='screen'>
<script src='http://localhost/baidusale/hdphp/hdjs/js/hdjs.js'></script>
<script src='http://localhost/baidusale/hdphp/hdjs/js/hdvalidate.js'></script>
<script src='http://localhost/baidusale/hdphp/hdjs/js/slide.js'></script>
<script src='http://localhost/baidusale/hdphp/hdjs/org/cal/lhgcalendar.min.js'></script>
<script type='text/javascript'>
HOST = '<?php echo $GLOBALS['user']['HOST'];?>';
ROOT = '<?php echo $GLOBALS['user']['ROOT'];?>';
WEB = '<?php echo $GLOBALS['user']['WEB'];?>';
URL = '<?php echo $GLOBALS['user']['URL'];?>';
APP = '<?php echo $GLOBALS['user']['APP'];?>';
COMMON = '<?php echo $GLOBALS['user']['COMMON'];?>';
HDPHP = '<?php echo $GLOBALS['user']['HDPHP'];?>';
HDPHPDATA = '<?php echo $GLOBALS['user']['HDPHPDATA'];?>';
HDPHPEXTEND = '<?php echo $GLOBALS['user']['HDPHPEXTEND'];?>';
MODULE = '<?php echo $GLOBALS['user']['MODULE'];?>';
CONTROLLER = '<?php echo $GLOBALS['user']['CONTROLLER'];?>';
ACTION = '<?php echo $GLOBALS['user']['ACTION'];?>';
STATIC = '<?php echo $GLOBALS['user']['STATIC'];?>';
HDPHPTPL = '<?php echo $GLOBALS['user']['HDPHPTPL'];?>';
VIEW = '<?php echo $GLOBALS['user']['VIEW'];?>';
PUBLIC = '<?php echo $GLOBALS['user']['PUBLIC'];?>';
CONTROLLERVIEW = '<?php echo $GLOBALS['user']['CONTROLLERVIEW'];?>';
HISTORY = '<?php echo $GLOBALS['user']['HISTORY'];?>';
</script>
    <link href='http://localhost/baidusale/hdphp/Extend/Org/bootstrap/css/bootstrap.min.css' rel='stylesheet' media='screen'>
<script src='http://localhost/baidusale/hdphp/Extend/Org/bootstrap/js/bootstrap.min.js'></script>
                <!--[if lte IE 6]>
                <link rel="stylesheet" type="text/css" href="http://localhost/baidusale/hdphp/Extend/Org/bootstrap/ie6/css/bootstrap-ie6.css">
                <![endif]-->
                <!--[if lt IE 9]>
                <script src="http://localhost/baidusale/hdphp/Extend/Org/bootstrap/js/html5shiv.min.js"></script>
                <script src="http://localhost/baidusale/hdphp/Extend/Org/bootstrap/js/respond.min.js"></script>
                <![endif]-->
    <!-- <link type="text/css" rel="stylesheet" href="http://localhost/baidusale/Static/css/common.css"/> -->
    <script type="text/javascript" src="http://localhost/baidusale/Application/Admin/View/City/Js/js.js"></script>
</head>
<body>
<div class="wrap">
    <table class="table2">
        <thead>
        <tr>
            <td width="50">id</td>
            <td width="180">城市名</td>
            <td width="180">pid</td>
            <td width="180">首字母</td>
            <td width="150">操作</td>
        </tr>
        </thead>
        <tbody>
        <?php if(is_array($cityData)){?><?php  foreach($cityData as $key=>$v){ ?>          
            <tr>
                <form action="<?php echo U('City/edit');?>" method="post" class="submit">
                    <td width="50"><?php echo $v['ctid'];?><input type="hidden" name="ctid" value="<?php echo $v['ctid'];?>"/></td>              
                    <td width="180">
                        <span><?php echo $v['_name'];?></span>
                        <input type="text" name="cityname" value="<?php echo $v['_name'];?>" class="yin_name" style="float:left;display:none;"/>
                    </td>
                    <td width="180">
                        <span><?php echo $v['ct_pid'];?></span>
                        <input type="text" name="ct_pid" value="<?php echo $v['ct_pid'];?>" class="yin_pid" style="float:left;display:none;"/>
                    </td>
                    <td width="180">
                        <span><?php echo $v['first'];?></span>
                        <input type="text" name="first" value="<?php echo $v['first'];?>" class="yin_first" style="float:left;display:none;"/>
                    </td>        
                    <td width="150">
                        <a href="javascript:;" class="btn btn-primary btn-xs edit-tag">编辑</a>
                        <a href="javascript:;" class="btn btn-success btn-xs submit-tag" style="display:none">保存</a>
                        <a href="javascript:;" class="btn btn-danger btn-xs" onclick="if(confirm('确定要删除么？'))location.href='<?php echo U('City/del',array('ctid'=>$v['ctid']));?>'">删除</a>
                    </td>                
                </form>     
            </tr>          
        <?php }}?>
        </tbody>
    </table>
    <div class="page_hdjob">
      
    </div>
</div>

</body>
</html>


